<?php
session_start();
include '../../lib/common/dbRoutines.php';
include '../../lib/dao/WordDao.php';
$words_string = "";

if(isset($_SESSION['user'])){
	$words = array();
	$conn = getDbConnection();
	$wordDao = new WordDao($conn);
	$words = $wordDao -> words_to_moderate();
	foreach($words as $key => $val){
		$words_string = $words_string . "\n" . $key;
	}
	}else{
		$words_string = "error_in_get_moder_words - session is not set!";
	}
	echo $words_string;

?>